<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={CHARSET}">
<meta http-equiv="Cache-control" content="{if $_G['setting']['mobile'][mobilecachetime] > 0}{$_G['setting']['mobile'][mobilecachetime]}{else}no-cache{/if}" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<meta name="format-detection" content="telephone=no" />
<meta name="keywords" content="$metakeywords" />
<meta name="description" content="$metadescription" />
<title>$navtitle</title>
</head>
<iframe style="display:none" name="myiframe" id="myiframe"></iframe>
<link rel="stylesheet" href="source/plugin/aljbd/css/sj/base.css" />
<link href="source/plugin/aljbd/css/sj/listing.css" rel="stylesheet" type="text/css">
<link href="source/plugin/aljbd/css/sj/wo_posts.css" rel="stylesheet" type="text/css">
{template aljbd:common}
<style type="text/css">
	.edit_btn{
		padding:5px 10px;
		border: 1px solid #e9e9e9;
		color: #999;
		border-radius: 5px;
		margin: 5px;
		display: inline-block;
	}
</style>
<body>
{template aljbd:header}
<article class="cmSubview cmSubviewRoot ui-subview ui-subview-root ui-subview-in">


<style type="text/css">
 .owner-toolbar {
display: block;
width: auto!important;
font: 15px/1.5 Helvetica,Arial,sans-serif;
padding: 10px 10px;
background: #f6f6f6;
border: 0;
}
 .cmSubview{padding-bottom:50px}
 ul.list:not(:empty) {
	 border-top: 1px solid #f8f8f8;
 }
 ul.list li.item {
	 line-height: 1.2;
	 border-bottom: 1px solid #f8f8f8;
	 overflow: hidden;
	 padding:10px 0px;
 }
.g_img{
	float: left;
	width:30%;
}
	.g_img img {width:80px;height:80px}
 .search {
	 position: relative;
	 background: #fff;
 }
 .search-keyword {
	 width: 100%;
	 padding: 0 0 0 5px;
	 font-size: 1em;
	 color: #3C3C3C;
	 background: #F4F4F4;
	 line-height: 30px;
	 border-radius: 3px;
	 border: 1px solid #CFCBC5;
	 box-shadow: 0 1px 3px #C8C8C8 inset;
 }
 .search-button {
	 position: absolute;
	 display: inline-block;
	 right: 10px;
	 top: 5px;
	 font-size: 0;
	 line-height: 0;
	 text-indent: -999px;
	 border: 0;
	 width: 30px;
	 height: 25px;
	 background-position: -605px 6px;
	 vertical-align: middle;
 }
 main>section h2 {
	 margin: 10px 0px;
 }
 .search-keyword {
	 background: #ffffff;
	 border: 1px solid #f8f8f8;
	 box-shadow: none;
 }
 .icon18 {
	 background: url(source/plugin/aljbd/images/sj/search_v.png) no-repeat center center;
	 background-size:20px
 }
</style>
<main>
	<section>

		<h2>{lang aljbd:Display_information}(<b style="color:red;">{eval echo C::t('#aljbd#aljbd_goods')->count_by_uid_bid($_G['uid']);}</b>){if $mygroup['good'] && $mygroup['good'] != $checksign}<br/><b style="color:red;">{lang aljbd:index_27}{$mygroup[grouptitle]}{lang aljbd:index_30}{$mygroup['good']} {lang aljbd:index_29}</b>{/if}</h2>
		<div class=" search" style="padding-bottom:10px;">
			<form action="plugin.php?id=aljbd&act=goodslist" method="post" enctype="multipart/form-data" accept-charset="utf-8" style="border:1px solid #f8f8f8;border-radius: 5px;">
				<input type="hidden" value="{FORMHASH}" name="formhash">
				<input type="text" class="search-keyword" name="kw" placeholder="{lang aljbd:list_goods_11}" value="$_GET['kw']">
				<input type="submit" class="icon18 icon18-search search-button" value="{lang aljbd:list_goods_11}" name="submit">
			</form>
		</div>
		<ul class="list">
		{loop $glist $g}

			<li class="item">
				<a href="plugin.php?id=aljbd&act=goodview&bid={$g['bid']}&gid={$g[id]}">
					<div class="g_img">
						<img src="{if file_exists($g['pic1'])}$g[pic1]{else}{$noimg}{/if}"  />
					</div>

					<header><h3 class="post-title"><span class="title">{$g['name']}{if $g['state'] == 1}<span style="color:red;">&#12300;&#24050;&#19979;&#26550;&#12301;</span>{else}<span style="color:green">&#12300;&#24050;&#19978;&#26550;&#12301;</span>{/if}

				</span></h3>
					</header>
				</a>
				<div style="font-size:12px;padding-bottom: 5px;padding-left: 115px;">
					<a class="edit_btn" href="plugin.php?id=aljbd&act=editgoods&gid={$g['id']}&bid={$g['bid']}">{lang aljbd:s279}</a>
					<a class="edit_btn" onclick="del_bd('{$g['id']}','deletegoods','gid')">{lang aljbd:s7}</a>
					<!--{if file_exists('source/plugin/aljhb/aljhb.inc.php')}-->
					<a href="javascript:;" class="edit_btn" onclick="red_packet_post($g['id'],'aljbd','goods');"><font color="red">&#21457;&#32418;&#21253;</font></a>
					<!--{/if}-->
				</div>
			</li>
		{/loop}
		</ul>
	</section>

</main>
<style type="text/css">
	.pg{text-align: center;padding:10px 0px}
	.pg strong{padding: 5px 8px;border:1px solid #eee;margin-right:5px}
	.pg a{padding: 5px 8px;border:1px solid #eee;margin-right:5px;pxtext-decoration:none;}
	.pg label{padding: 5px 8px;border:1px solid #eee;margin-right:5px}
	.pg label input{padding: 0px 8px;}
</style>
<div class="pages">$paging</div>
<script src="source/plugin/aljbd/js/index_wo.js" onerror="tracker.resErr(this)"></script>
<script type="text/javascript" src="source/plugin/aljbd/js/jquery.js"></script>
{template aljbd:del_js}
<script type="text/javascript">
    var jq = jQuery.noConflict();
</script>
<script type="text/javascript">
function tips(txt, fun) {
	jq('.tips').remove();
	var div = jq('<div style="background: url(source/plugin/aljbd/images/tips.png);max-width: 85%;min-height: 77px;min-width: 270px;position: absolute;left: -1000px;top: -1000px;text-align: center;border-radius:10px;"><span style="color: #ffffff;line-height: 77px;font-size: 23px;">' + txt + '</span></div>');
	jq('body').append(div);
	div.css('zIndex', 9999999);
	div.css('left', parseInt((jq(window).width() - div.width()) / 2));
	var top = parseInt(jq(window).scrollTop() + (jq(window).height() - div.height()) / 2);
	div.css('top', top);
	setTimeout(function() {
		div.remove();
		if (fun) {
			fun();
		}
	}, 2000);
}

</script>
{template aljbd:footer}
</article>

</body>
</html>
